<?php

require_once 'phpmoko/ui/Widget.php';

class HTML extends Widget
{
	private $html;

	function __construct($html)
	{
		parent::__construct();
		$this->html = $html;
	}

	function toString()
	{
		$str = '<div';

		if ($this->id != null)
			$str .= ' id="'.$this->id.'"';

		$str .= ' style="width: 100%;';

		if (!$this->isVisible())
			$str .= ' display: none;';
			
		$str .= '"';
			
		$str .= ' class="pmk-HTML"';
		
		$str .= '>';

		$str .= $this->html;

		$str .= '</div>';

		return $str;
	}
}
?>